import request from '@/utils/request'

// 添加客户
export function addCustomer(data) {
  return request({
    url: '/api/v1/customer/manage/',
    method: 'post',
		data
  })
}

export function getCustomerList(params) {
  return request({
    url: '/api/v1/customer/manage/',
    method: 'get',
		params
  })
}

export function delCustomer(data) {
  return request({
    url: '/api/v1/customer/manage/batch/',
    method: 'delete',
		data
  })
}

export function editCustomer(id, data) {
  return request({
    url: '/api/v1/customer/manage/' + id + "/",
    method: 'put',
		data
  })
}

// 导出客户信息
export function exportCustomer(params) {
  return request({
    url: '/api/v1/customer/manage/import/',
    method: 'get',
		params
  })
}